<html>
<script>

function downloadFile(path){
    var aLink = document.createElement("a"),
        evt = document.createEvent("HTMLEvents");

    evt.initEvent("click", true, false);
    aLink.download = "";
    aLink.href = path;
    aLink.dispatchEvent(evt);
}
</script>
</html>